<template>
  <div>
    <h1 @click="handleClick">{{con}}</h1>
  </div>
</template>

<script>
  export default {
    name: 'vue2',
    data() {
      return {
        con: '你好世界'
      }
    },
    methods: {
      handleClick() {
        this.con = 'HelloWord'
      }
    }
  }
</script>

<style scoped>

</style>